#ifndef HELPERS_H_
#define HELPERS_H_

class Logger {
public:
	inline static void log(std::string _log) {
#ifdef DEBUG
		printf("%s\n",_log.data());
#endif
	}
	inline static void logInt(std::string _log,int _val) {
#ifdef DEBUG
		printf("%s %d\n",_log.data(),_val);
#endif
	}
	inline static void logDouble(std::string _log,double _val) {
#ifdef DEBUG
		printf("%s %f\n",_log.data(),_val);
#endif
	}
	inline static void logFloat(std::string _log,float _val) {
#ifdef DEBUG
		printf("%s %f\n",_log.data(),_val);
#endif
	}
};

class TimeHelper {
public:
	static unsigned long currentTimeMillis() {
		struct timeval tv;
		gettimeofday(&tv,0);
		unsigned long time = tv.tv_sec-1199000000;
		time = (time*1000)+(tv.tv_usec/1000);
		return time;
	}
	static unsigned long currentTimeMicros() {
			struct timeval tv;
			gettimeofday(&tv,0);
			return tv.tv_usec;
		}
};




#endif /*HELPERS_H_*/
